package com.landscope.issue.bean;


public enum E_TOP_PARAM_NAME_TYPE {
    //Rain-降雨，temperatue-温度，PGV，Pressure-气压，humity-湿度，lamination-光照
    降雨("Rain", "降雨均值 mm"),
    温度("temperatue", "温度均值 ℃"),
//    PGV("PGV", "PGV"),
    气压("Pressure", "气压均值 kPa"),
    湿度("humity", "湿度均值 %"),
    光照("lamination", "光照均值 Lux"),
    ;
    private String value;
    private String name;

    E_TOP_PARAM_NAME_TYPE(String value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static E_TOP_PARAM_NAME_TYPE newValueOf(String value) {
        if (value == null) {
            return null;
        }
        for (E_TOP_PARAM_NAME_TYPE status : E_TOP_PARAM_NAME_TYPE.values()) {
            if (status.getValue().equals(value)) {
                return status;
            }
        }
        return null;
    }
}
